/*
 * Menu.cpp
 *
 *  Created on: Jan 15, 2012
 *      Author: The Almighty Eric
 */

#include "Menu.h"

Menu::Menu()
{
	state = "";
	image = NULL;
	objects = std::list<ASprite>();
	states = std::list<std::string>();
	sit = states.begin();
	oit = objects.begin();
}

Menu::Menu(std::string filename)
{
	std::fstream file(filename.c_str());

	if(file == NULL)
	{
		file.close();
		return;
	}
}

void Menu::EventHandling(SDL_Event e)
{

}

void Menu::Update(Uint32 ticks)
{
	oit = objects.begin();
	while(oit != objects.end())
	{
		ASprite a = *oit;
		a.update(ticks);

		oit++;
	}
}
